//package com.strive.common.config;
//
//import com.strive.common.constant.CommonConstant;
//import com.strive.common.utils.CustomBanner;
//import com.nepxion.banner.BannerConstant;
//import com.nepxion.banner.Description;
//import com.nepxion.banner.LogoBanner;
//import com.taobao.text.Color;
//import org.springframework.context.ApplicationContextInitializer;
//import org.springframework.context.ConfigurableApplicationContext;
//import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//
///**
// * @description:
// * @author: bingcun.chen
// * @Date: 2022/3/4 15:15
// * @Version 1.0
// */
//public class BannerInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
//    @Override
//    public void initialize(ConfigurableApplicationContext applicationContext) {
//        if (!(applicationContext instanceof AnnotationConfigApplicationContext)) {
//            LogoBanner logoBanner = new LogoBanner(BannerInitializer.class, "/strivemp/logo.txt", "Welcome to strive", 5, 6, new Color[5], true);
//            CustomBanner.show(logoBanner, new Description(BannerConstant.VERSION + ":", CommonConstant.PROJECT_VERSION, 0, 1)
//                    , new Description("Github:", "https://github.com/strive2000", 0, 1)
//                    , new Description("Blog:", "https://strive2000.gitee.io", 0, 1)
//            );
//        }
//    }
//
//}
